Follow the update terminology used by the extension system, in
particular when displaying extension details to the user.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7004
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3073>
Enables the extension identified by 'UUID'.
+
The command will not detect any errors from the extension itself, use the
-*info* command to confirm that the extension state is *ENABLED*.
+*info* command to confirm that the extension state is *ACTIVE*.
+
If the extension is already enabled, the command will do nothing.
if (type == TYPE_SYSTEM && (filter & LIST_FLAGS_SYSTEM) == 0)
continue;
- if (state == STATE_ENABLED && (filter & LIST_FLAGS_ENABLED) == 0)
+ if (state == STATE_ACTIVE && (filter & LIST_FLAGS_ENABLED) == 0)
continue;
- if (state != STATE_ENABLED && (filter & LIST_FLAGS_DISABLED) == 0)
+ if (state != STATE_ACTIVE && (filter & LIST_FLAGS_DISABLED) == 0)
continue;
if (!has_prefs && (filter & LIST_FLAGS_NO_PREFS) == 0)
} ExtensionType;
typedef enum {
- STATE_ENABLED = 1,
- STATE_DISABLED,
+ STATE_ACTIVE = 1,
+ STATE_INACTIVE,
STATE_ERROR,
STATE_OUT_OF_DATE,
STATE_DOWNLOADING,
STATE_INITIALIZED,
- STATE_DISABLING,
- STATE_ENABLING,
+ STATE_DEACTIVATING,
+ STATE_ACTIVATING,
STATE_UNINSTALLED = 99
} ExtensionState;
{
switch (state)
{
- case STATE_ENABLED:
- return "ENABLED";
- case STATE_DISABLED:
- return "DISABLED";
+ case STATE_ACTIVE:
+ return "ACTIVE";
+ case STATE_INACTIVE:
+ return "INACTIVE";
case STATE_ERROR:
return "ERROR";
case STATE_OUT_OF_DATE:
return "DOWNLOADING";
case STATE_INITIALIZED:
return "INITIALIZED";
- case STATE_DISABLING:
- return "DISABLING";
- case STATE_ENABLING:
- return "ENABLING";
+ case STATE_DEACTIVATING:
+ return "DEACTIVATING";
+ case STATE_ACTIVATING:
+ return "ACTIVATING";
case STATE_UNINSTALLED:
return "UNINSTALLED";
}